{extend name='extra@admin/content'}
{block name="button"}
<div class="nowrap pull-right" style="margin-top:10px">
</div>
{/block}
{block name="content"}
<!-- 表单搜索 开始 -->
<!-- 表单搜索 结束 -->
<form onsubmit="return false;" data-auto="true" method="post">
    {if empty($list)}
    <p class="help-block text-center well">没 有 记 录 哦！</p>
    {else}
    <input type="hidden" value="resort" name="action"/>
    <table class="layui-table" lay-skin="line" lay-size="sm">
        <thead>
            <tr>
                <th class='list-table-check-td'>
                    <input data-none-auto="" data-check-target='.list-check-box' type='checkbox'/>
                </th>
                <th class='text-left nowrap'>商品名称</th>
                <th class='text-left nowrap'>商品属性</th>
                <th class='text-left nowrap'>申请数量</th>
                <th class='text-left nowrap'>单位</th>
                <th class='text-left nowrap'>
                    {if condition="($order.status eq 0) OR ($order.status eq 2)"}
                        预估成本
                    {else /}
                        成本
                    {/if}
                </th>
                <!--<th class='text-left nowrap'>交易金额</th>-->
                <!--<th class='text-left nowrap'>对账成本</th>-->
                <!--<th class='text-left nowrap'>发货数量</th>-->
                <!--<th class='text-left nowrap'>收货数量</th>-->
                <!--<th class='text-left nowrap'>差异数</th>-->
                <th class='text-left nowrap'>状态</th>
                <th class='text-left nowrap'>处理时间</th>
                <!--<th class='text-left nowrap'>备注</th>-->
                <!-- <th class='text-left nowrap'>操作</th> -->
            </tr>
        </thead>
        <tbody>
            {foreach $list as $key=>$vo}
            <tr>
                <td class='list-table-check-td'>
                    <input class="list-check-box" value='{$vo.id}' type='checkbox'/>
                </td>
                <td class='text-left nowrap'>
                    {$vo.name}
                </td>
                <td class='text-left nowrap'>
                    {if condition="!empty($vo.title)"}
                    {$vo.title}
                    {else /}
                    无属性
                    {/if}
                </td>
                <td class='text-left nowrap'>
                    {$vo.num}
                </td>
                <td class='text-left nowrap'>
                    {$vo.unit}
                </td>
                <td class='text-left nowrap'>
                    {if condition="($order.status eq 0) OR ($order.status eq 2)"}
                        暂未处理
                    {else /}
                        {$vo.chengben}
                    {/if}
                </td>
                <!--<td class='text-left nowrap'>-->
                    <!--{if condition="!empty($vo.sale_price)"}-->
                        <!--{$vo.sale_price}-->
                    <!--{else /}-->
                        <!--0-->
                    <!--{/if}-->
                <!--</td>-->
                <!--<td class='text-left nowrap'>-->
                    <!--{if condition="!empty($vo.dz_chengben)"}-->
                        <!--{$vo.dz_chengben}-->
                    <!--{else /}-->
                        <!--暂未对账-->
                    <!--{/if}-->
                <!--</td>-->
                <!--<td class='text-left nowrap'>-->
                    <!--{if condition="($status eq 1) || ($status eq 3)"}{$vo.del_num}{elseif condition="$status eq 0" /}<span style="color:red;">申请中</span>{elseif condition="$status eq 2" /}<span style="color:red;">已驳回</span>{/if}-->
                <!--</td>-->
                <!--<td class='text-left nowrap'>-->
                    <!--{if condition="$status eq 3"}{$vo.rec_num}{elseif condition="$status eq 0"/}<span style="color:red;">申请中</span>{elseif condition="$status eq 2"}<span style="color:red;">已驳回</span>{else /}<span style="color:red;">未收货</span>{/if}-->
                <!--</td>-->
                <!--<td class='text-left nowrap'>-->
                    <!--{if condition="$status eq 3"}{$vo.dif_num}{elseif condition="$status eq 0"/}<span style="color:red;">申请中</span>{elseif condition="$status eq 2"}<span style="color:red;">已驳回</span>{else /}<span style="color:red;">未收货</span>{/if}-->
                <!--</td>-->
                <td class='text-left nowrap'>
                    {if condition="$status eq 0"}<span style="color:red;">申请中</span>{elseif condition="$status eq 1" /}<span style="color:red;">已发货</span>{elseif condition="$status eq 2" /}<span style="color:red;">已驳回</span>{else /}<span style="color:red;">已收货</span>{/if}
                </td>
                <td class='text-left nowrap'>
                    {if condition="$vo.deal_time eq 0"}<span style="color:red;">未处理</span>{else /}{$vo.deal_time|date="Y-m-d H:i",###}{/if}
                </td>
                <!--<td class='text-left nowrap'>-->
                    <!--{if condition="$vo.remark eq ''"}<span style="color:red;">无</span>{else}{$vo.remark}{/if}-->
                <!--</td>-->
                <!-- <td class='text-left nowrap'>
                    {if auth("$classuri/order_detail")}
                    <span class="text-explode">|</span>
                    <a data-open='{:url("$classuri/order_detail")}?id={$vo.id}' href="javascript:void(0)" title="详情"><i class="layui-icon">&#xe647;</i></a>
                    {/if}
                    {if auth("$classuri/rebut")}
                    <span class="text-explode">|</span>
                    <a data-modal='{:url("$classuri/rebut")}?id={$vo.id}' href="javascript:void(0)" title="驳回"><i class="layui-icon">&#x1007;</i></a>
                    {/if}
                </td>
            </tr> -->
            {/foreach}
        </tbody>
    </table>
    {if isset($page)}<p>{$page}</p>{/if}
    {/if}
    <script>
        window.laydate.render({range: true, elem: '#range-date', format: 'yyyy/MM/dd'});
    </script>
</form>
{/block}